const jsonData = require('./data/accountPermission.json');

const { headers, list } = jsonData;

module.exports = [
  {
    url: '/vue-admin-template/accountPermission/headers',
    type: 'get',
    response: config => {
      return {
        code: 20000,
        data: {
          total: headers.length,
          items: headers
        }
      }
    }
  },
  {
    url: '/vue-admin-template/accountPermission/list',
    type: 'get',
    response: config => {
      return {
        code: 20000,
        data: {
          total: list.length,
          items: list
        }
      }
    }
  }
]
